For this set of exercises as well as all following ones, we suggest that you write R scripts (one per set of exercises or a combined one for the whole course) and store them in the my_scripts folder contained in the course materials. This folder already contains a script stub called my_script.R which you can use for getting started.
R packages are out there that may be of interest for you, have a look at the CRAN Task View section called SocialSciences and do a quick search for “regression” on METACRAN.
CRAN (we will use those later on in the course). Please install the following packages: remotes, dplyr, janitor, correlation (Note: We will need a few more packages throughout this course, but we do not have to install all of them now).
remotes package.
CRAN. Another important source of R packages is GitHub (especially for development versions). So, let’s install a package from there. Install the emo package from GitHub. NB: To be able to install packages from GitHub on Windows machines, you will need to install Rtools first.
remotes package for this.
R start with #. Ideally, these should explain what the code you have written does.